package com.flyan.game.motafx.component;

import com.almasb.fxgl.entity.Entity;
import com.almasb.fxgl.entity.component.Component;
import com.flyan.game.motafx.core.backpack.Backpack;
import com.flyan.game.motafx.core.enums.EntityTypeEnum;

import java.util.List;

/**
 * 背包组件
 *
 * @author flyan
 * @version 1.0
 * @email flyan_by_chenu@sina.com
 * @since 2025/2/5
 */
public class BackpackComponent extends Component {

    private final Backpack backpack;

    public BackpackComponent() {
        backpack = new Backpack();
        backpack.addItem(EntityTypeEnum.ITEM_KEY, 10);
        backpack.addItem(EntityTypeEnum.ITEM_BLUE_KEY, 3);
    }

    public Backpack getBackpack() {
        return backpack;
    }
}
